package com.mux.springbootjsp.comtroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
	    @RequestMapping("/")
	    public String index() {
	    	System.out.println("index method");
	        return "index";
	    }

	    @RequestMapping("/hello")
	    public String hello() {
	    	System.out.println("hello");
	        return "hello";
	    }
	    
	    
	    @RequestMapping("/login")
	    public String login() {
	    	System.out.println("login");
	        return "login";
	    }
	    
	    
	    @RequestMapping("/buy")
	    public String buy(){
	    	return "buy";
	    }
	    
	    @RequestMapping("/home")
	    @ResponseBody
	    public String home(){
	    	return "home";
	    }
	    
	    @RequestMapping("/admin/get")
	    @ResponseBody
	    public String admin(){
	    	return "admin";
	    }
}
